package Text01;

class Cylinder {
    private double length;
    private Circle base;

    public Cylinder() {
        length = 1;
        base = new Circle();
    }

    public void setLength(double length) {
        this.length = length;
    }

    public double getLength() {
        return length;
    }

    public double findVolume() {
        return base.findArea() * length;
    }
}